﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Models;
using BLL;

namespace Web
{
    public partial class admin_index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ItemCountBindData();
        }

        public void ItemCountBindData()
        {
            List<CountInfo> list = ItemCountLogic.GetCountInfoList();
            if (list == null)
            {
                list = new List<CountInfo>();
                list.Add(new CountInfo());
            }

            ItemCount.DataSource = list;
            ItemCount.DataBind();
        }
    }
}
